package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;


import java.util.List;

public interface RoleService {

    void add(Role role, Integer[] permissionIds, Integer[] menuIds);

    PageResult pageQuery(Integer currentPage, Integer pageSize, String queryString);

    List<Permission> findPermission();

    List<Menu> findMenu();

    Role findById(int id);

    List<Integer> findByRPId(int id);

    List<Integer> findByRMId(int id);

    void edit(Role role,Integer[] permissionIds, Integer[] menuIds);

    int delete(int id);
}
